package com.cowcowit.springcloud.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cowcowit.springcloud.entity.Account;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author whboy
 * @since 2025-09-23
 */
public interface AccountMapper extends BaseMapper<Account> {
    /**
     * @param userId
     * @param money  本次消费金额
     */
    void decrease(@Param("userId") Long userId, @Param("money") Long money);
}
